環境:Windows XP GNS3.0.7 SecureCRT(可以不要) ADSL上網賬號。
目的: 通過實驗學習如何配置讓路由進行ADSL撥號連外網
開始: (開始前把ADSL撥號連接斷開)
- 打開GNS新建工程構建如下拓撲:

2、配置Cloud “本地連接“:右鍵“本地連接”選擇“配置“進入如下界面后,選擇本地連接網卡,然后按“添加”,再按“Apply“ 接著按“OK”:

3、在GNS工具欄中按“添加連接”接著用鼠標把設備連接起來如下 :

4、選中“R1”右鍵選擇“開始”,接著繼續選中“R1”右鍵選擇“Console”出現如下界面:(因為環境中把SecureCRT集成進去,所以單擊“Console”出現SecureCRT控制臺,若果沒有集成出現一個DOS窗口)如下:

在SecureCRT中對路由器R1進行基本配置
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1 (config)#enable pass cisco
R1 (config)#lin con 0
R1 (config-line)#pass cisco
R1 (config-line)#login
R1 (config-line)#no exec-timeout
R1 (config-line)#logging synchronous
R1 (config-line)#exit
R1 (config)#line vty 0 15
R1 (config-line)#pass cisco
R1 (config-line)#login
R1 (config-line)#logg synchronous
R1 (config-line)#no exec-timeout
R1 (config-line)#exit
5、配置R1開啟vpdn功能,命令如下
R1(config)#vpdn enable
R1(config)#vpdn-group inner
R1(config-vpdn)#request-dialin
R1(config-vpdn-req-in)#protocol pppoe
R1(config-vpdn-req-in)#exit
R1(config-vpdn)#exit
R1(config)#
6、配置R1 與“本地連接“相連的接口fa0/0進行撥號 ,命令如下:
R1(config)#int fa0/0
R1(config-if)#no ip add
R1(config-if)#no sh
R1(config-if)#no shutdown
R1(config-if)#speed auto
R1(config-if)#duplex auto
R1(config-if)#pppoe enable
R1(config-if)#pppoe-client dial-pool-number 1
R1(config-if)#exit
R1(config)#
7、配置邏輯撥號接口:命令如下:
R1(config)#interface dialer 1
R1(config-if)#mtu 1492
R1(config-if)#ip address negotiated
R1(config-if)#ip nat outside
R1(config-if)#encapsulation ppp
R1(config-if)#no ip mroute-cache
R1(config-if)#dialer pool 1
R1(config-if)#dialer-group 1
R1(config-if)#no cdp enable
R1(config-if)#ppp authentication pap callin
R1(config-if)#ppp pap sent-username “用戶名” password “密碼”
8、查看:

